package com.example.mq.mqClient;

import lombok.Data;

/**
 * @BelongsProject: 0.mq
 * @BelongsPackage: com.example.mq.mqClient
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-01-23  09:54
 * @Version : 1.0
 * @Description : TODO
 */
@Data
public class ConnectionFactory {
    private String host;
    private int port;
    public  Connection newConnection(){
        Connection connection = new Connection(host,port);
        return connection;
    }
}
